#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include <QPixmap>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* button = new QPushButton("demo",this);
    button->resize(100,50);
    button->move(100,100);
    //创建位图
    QPixmap mp(":/huaji.png");
    //缩放图片
    mp = mp.scaled(64,64);
    QCursor sor(mp);
    button->setCursor(sor);

}

Widget::~Widget()
{
    delete ui;
}

